package util.AST.Statement;

import checker.SemanticException;
import checker.Visitor;
import util.AST.Expression.Expression;

public class ReturnStatement extends Statement{

	private Expression returnExpression;
    
    public ReturnStatement(Expression expression) {
            this.returnExpression = expression;
    }
    
    public ReturnStatement() {
    
    }

    public Expression getReturnExpression() {
            return returnExpression;
    }
	
	@Override
	public String toString(int level) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Object visit(Visitor v, Object o) throws SemanticException {
		// TODO Auto-generated method stub
		return v.visitReturn(this, o);
	}
	

}
